<?php
	require("akses.php");
	connect();
	$username = trim($_POST["username"]);	
	if (strlen($username) > 4) {
		if (!isUsernameUnique($username)) {
			echo "This username is already registered.";
		} else {
			echo "OK";
		}
	} else {
		echo "Your user name must be at least 5 characters";
	}
?>